package com.hymc.londonolympic.activity;

import android.app.Activity;
import android.os.Bundle;

import com.hymc.londonolympic.R;
import com.hymc.londonolympic.layout.EventLayout;
import com.hymc.londonolympic.layout.MainLayout;
import com.hymc.londonolympic.layout.StadiumLayout;
import com.hymc.londonolympic.widget.Workspace;

public class MainActivity extends Activity {

	private Workspace workSpace;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		init();
	}

	private void init() {
		workSpace = (Workspace) findViewById(R.id.workspace);
		workSpace.addView(new EventLayout(this));
		workSpace.addView(new MainLayout(this));
		workSpace.addView(new StadiumLayout(this));
		workSpace.setCurrentScreen(0);
		workSpace.invalidate();
	}

}